home *** CD-ROM | disk | FTP | other *** search
/ LOGIC 2000 February / LogicCd--feb.2000-mac-cdr.iso / Macintosh / Utilities / BetterCalc-30.sit / BetterCalc 3 folder / Read Me - Skins < prev    next >
Text File  |  2000-02-14  |  2KB  |  33 lines

  1. BetterCalc 3 Skins
  2.  
  3. General Information
  4.  
  5. BetterCalc supports special appearance module files called “Skins”. Skin files are placed into the Skins folder inside the BetterCalc folder. All skins in that folder are read into BetterCalc at application startup.
  6.  
  7. BetterCalc reads all files in that folder (except for the invisible file named “Icon” which is the Skins folder’s icon) into its memory, so it is not recommended to place any files other than Skin files into this folder.
  8.  
  9. The anatomy of a Skin
  10.  
  11. Skin files are basically resource files that contain image and text data. Skin files can be created in any resource editor (such as ResEdit or Resorcerer).
  12.  
  13. The Skin appearance is contained in a PICT resource whose ID number is 128. The skin’s name is contained in a TEXT resource whose ID numer is also 128. The Skin file only contaisn the window’s background, not the controls (the text fields).
  14.  
  15. A Skin should be created so that the areas reserved for the close and collapse boxes are clearly visible. Here’s a sample of a skin background:
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. This Skin, ColorMetallix, is supposed to have a one pixel wide border. The window where the skin will be placed already has a border, so there’s no need to draw it into the skin.
  30.  
  31. The Close and Zoom boxes are always at the locations shown above. Also, the window’s Content region is always where it is in this sample. However, the Content region doesn’t need to have a border.
  32.  
  33. The best way to create a Skin is to make a copy of an existing Skin, copy the PICT#128 resource, paste it into an image editor, create a new Skin based on the existing Skin, copy that new Skin back into the resource file and save the resource file. Ta-dah! A new BetterCalc Skin! ;-)